<?php

/**
 * UsuariosModel
 *  
 * @author diego
 * @version 
 */

require_once 'Zend/Db/Table/Abstract.php';

class Usuarios extends Zend_Db_Table_Abstract {

	protected $_name = 'usuarios_grupos';

 	protected $_referenceMap    = array(
        'Usuario' => array(
            'columns'           => array('id_usuario'),
            'refTableClass'     => 'Usuarios',
            'refColumns'        => array('id'),
            'onDelete'          => self::CASCADE,
            'onUpdate'          => self::RESTRICT
        ), 
        'Grupo' => array(
            'columns'           => array('id_grupo'),
            'refTableClass'     => 'Grupos',
            'refColumns'        => array('id'),
            'onDelete'          => self::CASCADE,
            'onUpdate'          => self::RESTRICT
        )
        
        );
	  
}
